using JT808Protocol.Models.Enums;
using System;
using System.Collections.Generic;
using System.Text.Json.Serialization;

namespace JT808Protocol.Models.BodyParserStrategy
{
    /// <summary>
    /// 终端升级结果应答
    /// </summary>
    public class DpDeviceUpgrade_0x0108 : IJT808Body
    {
        /// <summary>
        /// 升级类型
        /// </summary>
        [JsonPropertyName("升级类型")] public EnumDeviceUpgradeType UpgradeType { get; set; }

        /// <summary>
        /// 升级结果，0 成功，1 失败，2 取消
        /// </summary>
        [JsonPropertyName("升级结果")] public byte UpgradeResult { get; set; }

        public override IJT808Body ReadBody(ReadOnlySpan<byte> data, ref int index)
        {
            throw new NotImplementedException();
        }

        public override List<byte> WriteToBytes()
        {
            throw new NotImplementedException();
        }
    }
}